package com.example.webdemo.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;
/**
 * @description:  首页推荐文章
 * @author zp
 * @date: 2023/8/18 20:18
 */
public class HomeArticle {
    private Integer id;

    private Integer userId;

    private Integer articleInfoId;

    private String articleDesc;

    private String title;

    private String author;

    private String tags;

    private Integer articleStatus;

    private Integer commentNum;

    private List<Tag> tagNames;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date releaseData;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String thumb;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getArticleInfoId() {
        return articleInfoId;
    }

    public void setArticleInfoId(Integer articleInfoId) {
        this.articleInfoId = articleInfoId;
    }

    public String getArticleDesc() {
        return articleDesc;
    }

    public void setArticleDesc(String articleDesc) {
        this.articleDesc = articleDesc == null ? null : articleDesc.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags == null ? null : tags.trim();
    }

    public Integer getArticleStatus() {
        return articleStatus;
    }

    public void setArticleStatus(Integer articleStatus) {
        this.articleStatus = articleStatus;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Date getReleaseData() {
        return releaseData;
    }

    public void setReleaseData(Date releaseData) {
        this.releaseData = releaseData;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb == null ? null : thumb.trim();
    }

    public List<Tag> getTagNames() {
        return tagNames;
    }

    public void setTagNames(List<Tag> tagNames) {
        this.tagNames = tagNames;
    }

    @Override
    public String toString() {
        return "HomeArticle{" +
                "id=" + id +
                ", userId=" + userId +
                ", articleInfoId=" + articleInfoId +
                ", articleDesc='" + articleDesc + '\'' +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", tags='" + tags + '\'' +
                ", articleStatus=" + articleStatus +
                ", commentNum=" + commentNum +
                ", tagNames=" + tagNames +
                ", releaseData=" + releaseData +
                ", createTime=" + createTime +
                ", thumb='" + thumb + '\'' +
                '}';
    }
}